package com.edu.neusoft.phone_sale.service.impl;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.edu.neusoft.phone_sale.common.ResponseResult;
import com.edu.neusoft.phone_sale.entity.Customers;
import com.edu.neusoft.phone_sale.mapper.CustomersMapper;
import com.edu.neusoft.phone_sale.service.CustomersService;
import org.springframework.stereotype.Service;


@Service
public class CustomersServiceImpl extends ServiceImpl<CustomersMapper, Customers> implements CustomersService {

    @Override
    public ResponseResult findByPage(int pageNum, int pageSize) {
        Page<Customers> page = new Page<>(pageNum, pageSize);
        baseMapper.selectPage(page, null);
        return ResponseResult.okResult(page);
    }
}

